package com.colorlight.cloud.complete.entity.po;

import com.colorlight.cloud.complete.entity.enumerate.DownloadResult;
import com.colorlight.cloud.complete.entity.enumerate.SaveErrorCode;
import com.colorlight.cloud.gateway.api.message.constraint.basics.object.Trans;
import com.colorlight.iot.proto.complete.entity.CompleteEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ReceiverResult implements Trans<ReceiverResult, CompleteEntity.ReceiverResult> {

    /**
     * 发送设备序号
     */
    private Integer prcIndex;

    /**
     * 文件下载结果，默认结果为 DownloadResult.success
     */
    private DownloadResult downloadResult;

    /**
     * 网口号
     */
    private Integer portIndex;

    /**
     * 接收卡序号
     */
    private Integer rcvIndex;

    /**
     * 操作结果
     */
    private SaveErrorCode errorCode;
}

